Expand description
A utility library for wrapping arbitrary errors, and for “throwing” errors in a way that can be caught by user-defined error hooks.
Structs§
- A generic wrapper for any error.
- A
Future
that reads the error hook that is set when it is created, and sets this as the current error hook whenever it is polled. - A unique identifier for an error. This is returned when you call
throw
, which calls a global error handler. - Resets the error hook to its previous state when dropped.
Traits§
- Implements behavior that allows for global or scoped error handling.
Functions§
- Clears the given error from the current error hook.
- Returns the current error hook.
- Sets the current thread-local error hook, which will be invoked when
throw
is called. - Invokes the error hook set by
set_error_hook
with the given error.
Type Aliases§
- This is a result type into which any error can be converted.